package com.abel.cloud.feign.service;

import com.abel.cloud.common.po.UserAccountPO;
import com.abel.cloud.common.response.Resp;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
@FeignClient(value = "ABEL-PROVIDER")
public interface UserAccountService {
    @GetMapping("user/{id}")
    Resp<UserAccountPO> getUser(@PathVariable("id") Integer id);

    @GetMapping("timeout/{sec}")
    Resp timeOut(@PathVariable("sec") Integer sec);
}
